package com.mapper;

import com.entity.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper {
    void insertAddress(Address addr);
    void deleteAddressById(Integer id);
    void updateAddress(Address address);
    Address selectAddressById(Integer id);
    Address selectAddressByName(String name);
    List<Address> selectAddress(Integer user_id);
    List<Address> selectPageAddress(@Param("pageNum")Integer pageNum,
                              @Param("pageSize")Integer pageSize);
}
